import { Navigate } from "react-router-dom";
import Gedan from "../pages/Gedan/Gedan";
import HeroDetail from "../pages/HeroDetail/HeroDetail";
import HeroList from "../pages/HeroList/HeroList";
import MyMusic from "../pages/MyMusic/MyMusic";
import NotFound from "../pages/NotFound/NotFound";
import Singer from "../pages/Singer/Singer";
import YYG from "../pages/YYG/YYG";

let routerArr=[
  {
    path:'*',
    element:<NotFound/>
  },
  {
    path:'/yyg',
    element:<YYG/>,
    children:[
      {
        index:true,
        element:<Navigate to='gedan'/>
      },
      {
        path:'gedan',
        element:<Gedan/>
      },
      {
        path:'singer',
        element:<Singer/>
      }
    ]
  },
  {
    path:'/mymusic',
    element:<MyMusic/>
  },
  {
    path:'/heros',
    element:<HeroList/>
  },
  {
    path:'hero',
    element:<HeroDetail/>
  }
]

export default routerArr